package com.mudalov.rec.dao.interfaces;

import java.util.Collection;
import java.util.List;

public interface IGenericDAO<T, ID> {

    public void deleteObject(T object);

	public void save(T object);
	
	public void saveAll(Collection<T> objects);

    public void saveOrUpdate(T object);

    public void saveOrUpdateAll(Collection<T> objects);
	
	public List<T> findAll();
	
	public T findById(ID id);
	
	public T findObjectByProperty(String propertyName, Object value);

    public boolean checkForExist(String propertyName, String propertyValue);
}
